home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
v cisle
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Show Date 4.sd
< prev
next >
Wrap
INI File
|
2004-06-28
|
966b
|
54 lines
[SUBJECT]
Description=Display the current date (4th variant)
ImageIndex=-1
Folder=Tools
[HEAD_TEXT]
;<script language="JavaScript">
;<!-- begin script
;var dd4, delay4, TheYear;
;function debuteDate4() {
; var adate, date, amonth;
; delay4 = `delay`;
;
; adate = new Date();
; date = adate.getDate();
; amonth = adate.getMonth()+1;
;
;
; if (adate.getYear() > 1999)
; TheYear = adate.getYear();
; else
; TheYear = (1900 + adate.getYear());
;
; if (amonth < 10)
; date += "-0" + amonth + "-" + TheYear;
; else date += "-" + amonth + "-" + TheYear;
; date = " " + date;
; document.Temps24.date.value = date;
;
; dd4 = setTimeout("debuteDate4(delay4)",delay4);
;}
;// end script -->
;</script>
;
[BODY_TAG]
;onLoad="debuteDate4()" onUnload="clearTimeout(dd4)"
[BODY_TEXT]
;<form name="Temps24">
;<input type="text" name="date" size="18"><br>
;</form>
;
[`delay`]
Kind=N
Value=10000